﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BaoCaoTinhHinhCongNhanLaoDongQuocPhong_Update.aspx.cs"
    Inherits="AIC_CD.BaoCaoTinhHinhCongNhanLaoDongQuocPhong_Update" MasterPageFile="~/Site1.Master"  MaintainScrollPositionOnPostback="true"%>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    <div id="Div1" class="FormTitleA3" runat="server">
        <p class="TextTitle">
            <label id="lblFormName" runat="server" class="lblFormName">
                Cập nhật báo cáo tình hình công nhân, lao động quốc phòng và tổ chức, đoàn viên
                công đoàn
            </label>
            <asp:ImageButton CssClass="btnExit" ID="ImageButton1" runat="server" ImageUrl="Images/exit.png"
                Height="24px" OnClick="ImageButton1_Click" />
        </p>
    </div>
    <div class="FormMainA3">
        <div class="labelNotice">
            <label id="lblNotice" style="color: Red" runat="server" visible="false">
                Thông báo lỗi</label>
        </div>
        <div class="labelNotice">
            <font color="black">Chọn kỳ báo cáo : </font>
            <asp:DropDownList ID="cboKyBaoCao" runat="server" AutoPostBack="true" Width="300"
                CssClass="ControlDropdown" OnSelectedIndexChanged="cboKyBaoCao_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:Button ID="btnLuu" Visible="false" runat="server" Text="Lưu lại" ToolTip="Lưu tên báo cáo, người lập báo cáo, người ký báo cáo"
                CssClass="cmdBtn" OnClick="btnLuu_Click" />
        </div>
        <table style="width: 100%; padding: 5px;">
            <tr>
                <td align="left" runat="server" id="tdTenDonVi">
                    Tên đơn vị
                </td>
                <td align="right">
                    Mẫu báo cáo thống kê (Khổ giấy A3) trước 15/6 và 30/9 hàng năm
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" runat="server" id="tdTenBaoCao">
                    <asp:TextBox ID="txtTenBaoCao" runat="server" Width="100%" Text="BÁO CÁO TÌNH HÌNH CÔNG NHÂN, LAO ĐỘNG QUỐC PHÒNG VÀ TỔ CHỨC, ĐOÀN VIÊN CÔNG ĐOÀN"
                        class="ReportTitle"> </asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnl" runat="server" CssClass="panelA3">
            <asp:GridView ID="grvData" runat="server" Width="100%" AllowSorting="True" AutoGenerateColumns="False"
                OnRowCommand="grvData_RowCommand" OnRowDataBound="grvData_RowDataBound" OnRowEditing="grvData_RowEditing"
                OnPageIndexChanging="grvData_PageIndexChanging" DataKeyNames="ID" OnRowCancelingEdit="grvData_RowCancelingEdit"
                OnRowCreated="grvData_RowCreated" ShowHeader="false" ShowFooter="true">
                <Columns>
                    <asp:TemplateField HeaderText="STT">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                        <ItemStyle Width="60px" HorizontalAlign="Center"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="STT">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF2Edit" runat="server" Text='<%# Eval("F2") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF2New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F2") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF3Edit" runat="server" Text='<%# Eval("F3") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF3New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F3") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF4Edit" runat="server" Text='<%# Eval("F4") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF4New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F4") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF5Edit" runat="server" Text='<%# Eval("F5") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF5New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F5") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF6Edit" runat="server" Text='<%# Eval("F6") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF6New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F6") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF7Edit" runat="server" Text='<%# Eval("F7") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF7New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F7") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF8Edit" runat="server" Text='<%# Eval("F8") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF8New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F8") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF9Edit" runat="server" Text='<%# Eval("F9") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF9New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F9") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF10Edit" runat="server" Text='<%# Eval("F10") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF10New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F10") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF11Edit" runat="server" Text='<%# Eval("F11") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF11New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F11") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF12Edit" runat="server" Text='<%# Eval("F12") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF12New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F12") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF13Edit" runat="server" Text='<%# Eval("F13") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF13New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F13") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF14Edit" runat="server" Text='<%# Eval("F14") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF14New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F14") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF15Edit" runat="server" Text='<%# Eval("F15") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF15New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F15") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF16Edit" runat="server" Text='<%# Eval("F16") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF16New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F16") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF17Edit" runat="server" Text='<%# Eval("F17") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF17New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F17") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF18Edit" runat="server" Text='<%# Eval("F18") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF18New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F18") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF19Edit" runat="server" Text='<%# Eval("F19") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF19New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F19") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF20Edit" runat="server" Text='<%# Eval("F20") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF20New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F20") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF21Edit" runat="server" Text='<%# Eval("F21") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF21New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F21") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF22Edit" runat="server" Text='<%# Eval("F22") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF22New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F22") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF23Edit" runat="server" Text='<%# Eval("F23") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF23New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F23") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF24Edit" runat="server" Text='<%# Eval("F24") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF24New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F24") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF25Edit" runat="server" Text='<%# Eval("F25") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF25New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F25") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF26Edit" runat="server" Text='<%# Eval("F26") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF26New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F26") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF27Edit" runat="server" Text='<%# Eval("F27") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF27New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F27") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF28Edit" runat="server" Text='<%# Eval("F28") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF28New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F28") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF29Edit" runat="server" Text='<%# Eval("F29") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF29New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F29") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF30Edit" runat="server" Text='<%# Eval("F30") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF30New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F30") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="txtF31Edit" runat="server" Text='<%# Eval("F31") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <FooterTemplate>
                            <asp:TextBox ID="txtF31New" runat="server"></asp:TextBox>
                        </FooterTemplate>
                        <ItemTemplate>
                            <%# Eval("F31") %>
                        </ItemTemplate>
                        <ItemStyle Width="60px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderStyle Wrap="False"></HeaderStyle>
                        <ItemStyle Wrap="False" Width="60px"></ItemStyle>
                        <FooterTemplate>
                            <asp:ImageButton ID="imgInsert" runat="server" ImageUrl="~/Images/insert.png" ToolTip="Thêm mới"
                                CommandName="<%# AIC_CD.MyConst.Action.Addnew %>" />
                        </FooterTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgEdit" runat="server" ImageUrl="images/edit.gif" ToolTip="Sửa"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="Edit">
                            </asp:ImageButton>
                            <asp:ImageButton ID="imgDel" runat="server" ImageUrl="images/delete.png" ToolTip="Xóa"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="<%# AIC_CD.MyConst.Action.Delete %>"
                                OnClientClick="return confirm('Bạn có chắc là muốn xóa bản ghi này không ?')">
                            </asp:ImageButton>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:ImageButton ID="imgUpdate" runat="server" ImageUrl="images/approval.png" ToolTip="Cập nhật"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")%>' CommandName="<%# AIC_CD.MyConst.Action.Approve %>">
                            </asp:ImageButton>
                            <asp:ImageButton ID="imgCancel" runat="server" CommandName="Cancel" ImageUrl="images/cancel.png"
                                CommandArgument='<%# Bind("ID") %>' />
                        </EditItemTemplate>
                        <ItemStyle Width="70px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
        <table style="width: 100%; padding: 5px;">
            <tr>
                <td colspan="2" style="height: 20px;">
                </td>
            </tr>
            <tr>
                <td id="Td1" runat="server">
                    Người lập biểu<br />
                    (Ký, ghi rõ họ tên)<br />
                    <asp:TextBox ID="txtNguoiLapBaoCao" runat="server" Width="200px" Text="Đinh Văn Sở"
                        class="ControlDropdown InputText"> </asp:TextBox>
                    <p>
                        Ghi chú :
                    </p>
                    <p>
                        - Cột 5, 13: Lao động hợp đồng không tính lao động hợp đồng thời vụ dưới 3 tháng.</p>
                    <p>
                        - Cột 8: Gia đình có thu nhập thất theo quy định của nhà nước.</p>
                    <p>
                        - Cột 18: Cán bộ cấp phân đội trở lên.</p>
                    <p>
                        - Cột 25: Thợ bậc 5/7 và có bậc lương tương đương trở lên.</p>
                    <p>
                        - Cột 6, 7 và 26: Ghi số bình quân chung</p>
                    <p>
                        - Cột 27-31: CĐCS thuộc đơn vị loại hình nào thì đánh dấu X vào cột tương ứng</p>
                </td>
                <td id="Td2" runat="server" align="right" valign="top">
                    Thủ trưởng cơ quan chính trị<br />
                    (Ký và đóng dấu)<br />
                    <asp:TextBox ID="txtThuTruongCoQuanChinhTri" runat="server" Width="200px" Text="Đinh Văn Sở"
                        class="ControlDropdown InputText"> </asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
